
<%@ page import="negocio.Atividade" %>
<html>

    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <meta name="layout" content="home" />
        <g:set var="entityName" value="${message(code: 'atividade.label', default: 'Atividade')}" />
        <title><g:message code="default.list.label" args="[entityName]" /></title>
    </head>
    <body>
      <div id="escopo">
        <div class="nav">
            <span class="menuButton"><g:link class="create" action="create"><g:message code="female.new.label" args="[entityName]" /></g:link></span>
        </div>
        <div class="body">
            <h1><g:message code="female.list.label" args="[entityName]" /></h1>
            <g:if test="${flash.message}">
            <div class="message">${flash.message}</div>
            </g:if>
            <div class="list">
                <table>
                    <thead>
                        <tr>

                            <g:sortableColumn property="nome" title="${message(code: 'atividade.nome.label', default: 'Nome')}" />

                            <g:sortableColumn property="cargaHoraria" title="${message(code: 'atividade.cargaHoraria.label', default: 'Carga Horaria')}" />

                            <g:sortableColumn property="descricao" title="${message(code: 'atividade.descricao.label', default: 'Descricao')}" />

                        </tr>
                    </thead>
                    <tbody>
                    <g:each in="${atividadeInstanceList}" status="i" var="atividadeInstance">
                        <tr class="${(i % 2) == 0 ? 'odd' : 'even'}">

                            <td><g:link action="show" id="${atividadeInstance.id}">${fieldValue(bean: atividadeInstance, field: "nome")}</g:link></td>

                            <td>${fieldValue(bean: atividadeInstance, field: "cargaHoraria")}</td>

                            <td>${fieldValue(bean: atividadeInstance, field: "descricao")}</td>

                        </tr>
                    </g:each>
                    </tbody>
                </table>
            </div>
        </div>
      </div>
    </body>
</html>

